<?php
if(!$_SESSION["AdminPassed"])
{
?>
<script language="JavaScript">
window.location.href="index.php";
</script>
<?php 
}
?>